package com.yanqu.road.entity.activity.langyamemorial;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_c_activity_langya_memorial_user_data", desc = "玩家祭奠进度")
public class CrossLangYaMemorialUserData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "建设序号, 一直更新最新")
    private long buildNo;

    @FieldTypeAnnotation(desc = "变更时间")
    private long updateTime;

    @FieldTypeAnnotation(desc = "祭奠值")
    private long buildValue;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getBuildNo() {
        return buildNo;
    }

    public void setBuildNo(long buildNo) {
        if(this.buildNo != buildNo) {
            this.buildNo = buildNo;
            setUpdateOption();
        }
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        if(this.updateTime != updateTime) {
            this.updateTime = updateTime;
            setUpdateOption();
        }
    }

    public long getBuildValue() {
        return buildValue;
    }

    public void setBuildValue(long buildValue) {
        if(this.buildValue != buildValue) {
            this.buildValue = buildValue;
            setUpdateOption();
        }
    }
}
